package net.muchine.core.service.user;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import net.muchine.core.dao.user.GroupDao;
import net.muchine.core.domain.user.Group;
import net.muchine.core.service.GenericServiceImpl;

@Component
public class GroupServiceImpl extends GenericServiceImpl<Group, Long> implements
		GroupService {
	
	@Autowired private GroupDao dao;

	@Override
	public void setGenericDao() {
		super.setDao(dao);
	}

	public Group findByName(String name) {
		return dao.findByName(name);
	}

	public List<Group> selectAll() {
		return dao.selectAll();
	}
}
